package sqlSession;


import pojo.Configuration;
import pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

public interface Executor {

    public <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;


    public Integer update(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

    Integer delete(Configuration configuration, MappedStatement mappedStatement, Object... params) throws SQLException, Exception;

    Integer insert(Configuration configuration, MappedStatement mappedStatement, Object... params)throws Exception;
}
